<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	template="layout/templateInventario.xhtml">

	<ui:define name="body">

		<h:form id="invIngresoSearch" styleClass="edit">

			<rich:simpleTogglePanel label="filtro de reporte de stock"
				switchType="ajax">
				<s:decorate template="layout/display.xhtml">
					<ui:define name="label">Grupo:</ui:define>
					<h:selectOneMenu value="#{invItemStock.manualDeGrupoDeCodigo}"
						defaultLabel="Seleccione..." directInputSuggestions="true"
						enableManualInput="false">

						<f:selectItems value="#{grupoListado.grupoSelectItems}" />
					</h:selectOneMenu>
				</s:decorate>

				<s:decorate id="cmpCodigoField1" template="layout/edit.xhtml">
					<ui:define name="label">Restriccion y cantidad:</ui:define>
					<h:selectOneMenu value="#{invItemStock.manualDeRestriccionSQL}"
                        defaultLabel="Seleccione..." directInputSuggestions="true"
                        enableManualInput="false">
                        <f:selectItems value="#{grupoListado.listaRestriccionesSelectItems}" />
                        </h:selectOneMenu>
					<h:inputText id="cmpCodigo" value="#{invItemStock.manualCantidad}" style=" width : 69px;">
						<a:support event="onblur" reRender="cmpCodigoField"	bypassUpdates="true" ajaxSingle="true" />
					</h:inputText>
					
				</s:decorate>
			</rich:simpleTogglePanel>

			<div class="actionButtons"><h:commandButton id="reporte"
				value="Listado" action="/ReporteDeStock.xhtml" /> <s:button
				id="reset" value="Limpiar" includePageParams="false" /></div>

		</h:form>



		<div class="tableControl"></div>


	</ui:define>

</ui:composition>
